﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Monitor.Models.Json
{
    public class CarDetails
    {
        public int Id { set; get; }

        [Display(Name = "Машина")]
        public string CarName { get; set; }

        [Display(Name = "Состояние")]
        public Dictionary<int, CarMesure> ListMesure { get; set; } 

    }

    public class CarMesure
    {
        public int IdMesure { get; set; }

        [Display(Name = "Измерение")]
        public string NameMesure { get; set; }

        [Display(Name = "Значение")]
        public object Value { get; set; }
    }
}